package com.gxy.learn.backup.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * ConfigurationProperties 方式
 */
@Data
@Component
@ConfigurationProperties(prefix = "com.gxy.learn.am.user")
public class ConfigurationPropertiesConfig {
    private String userName;
    private Integer sex;
    private Integer age;

    /**
     * 学科
     */
    private List<String> discipline;
    /**
     * 各科学分
     */
    private Map<String,String > score;
    /**
     * 业余爱好
     */
    private HobbyModel hobby;
    private Map<String,List<String>> dataMap;

}
